<extend name="public@base"/>

<block name="head">
    <title>搜索结果</title>
</block>

<block name="body">

    <!--breadcrumb start-->
    <div class="breadcrumbs">
        <div class="container">
            <div class="row">
                <div class="col-lg-4 col-sm-4">
                    <h3>'{$keyword}' 搜索结果 </h3>
                </div>
                <div class="col-lg-8 col-sm-8">
                    <ol class="breadcrumb pull-right">
                        <li><a href="__ROOT__/">首页</a></li>
                        <li class="active">搜索结果</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
    <!--breadcrumb end-->

    <!--container start-->
    <div class="container">
        <div class="row">
            <!--blog start-->
            <div class="col-lg-9 ">
                <php>
                    $where=function($query)use($keyword){
                    $query->where('post.create_time','egt',0)->where('post.post_title','like',"%$keyword%");
                    };
                </php>
                <portal:articles item="vo" where="$where" order="post.create_time DESC" page="10">
                    <div class="blog-item">
                        <div class="row">
                            <div class="col-lg-2 col-sm-2">
                                <h1><a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">{$vo.post_title}</a></h1>
                                <p>{$vo.published_time|date='Y-m-d'}</p>
                                <p>{$vo.post_excerpt}</p>
                                <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}" class="btn btn-primary">了解详情</a>
                            </div>
                        </div>
                    </div>
                </portal:articles>
                <div class="text-center">
                    <ul class="pagination">
                        <page/>
                    </ul>
                </div>

            </div>
            <div class="col-lg-3">
                <include file="public@right_side" />
            </div>

            <!--blog end-->
        </div>

    </div>
    <!--container end-->


</block>